﻿<%@ Page Title="配送企业列表(低值)" Language="C#" MasterPageFile="~/Master/MasterPage.master" 
    AutoEventWireup="true" CodeBehind="CompanyList_PS_DZ.aspx.cs" Inherits="HZ.Supervise.Web.Company.CompanyList_PS_DZ" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 146px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">

        document.body.onkeydown = function () {

            var btn = document.getElementById("<%=GetBtnClientId() %>");

            if (event.keyCode == 13) {

                btn.click();

                event.returnValue = false;
            }

        }

    </script>
    <div id="tabnav">
        <ul>
            <li><a href="CompanyList_PS.aspx">配送企业列表(高值)</a></li>
            <li class="active"><a href="javascript:void(0)">配送企业列表(低值)</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td width="100%">
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                &nbsp;<asp:Label ID="Label1" runat="server" Text="配送企业："></asp:Label>
                            </td>
                            <td align="left" class="style1">
                                <asp:TextBox ID="txtCompanyPS" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                所在地区：
                            </td>
                            <td align="left"> 
                                <uc3:AreaControl ID="ddlArea"  runat="server"/>
                            </td>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td align="left">
                                <hz:HzButton ID="btnQuery" runat="server" Text="单内查询" OnClick="btnQuery_Click" CssClass="btn" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwPSLInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
        AllowSorting="True" EmptyDataText="暂无符合条件的数据！" DataKeyNames="">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager_CompanyList_PS.PageSize * (AspNetPager_CompanyList_PS.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <a href='CompanyGoodsList_ps.aspx?Companyid_PS=<%# Eval("Companyid_PS")%>&comname=<%# Eval("CompanyName_PS")%>'>
                        <%# Eval("CompanyName_PS")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" Visible="false" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span><span
                style="width: 70%; text-align: right; float: right"><webdiyer:AspNetPager ID="AspNetPager_CompanyList_PS"
                    runat="server" OnPageChanged="CompanyList_PS_PageChanged">
                </webdiyer:AspNetPager>
            </span>
    </div>
    <br />
     <div class="listip">
        <ul>
            <li>说明:<span style="color:Red;">请选择地区再查询相关数据</span></li>
        </ul>
    </div>
</asp:Content>
